const obj = {a:1,b:{
    c:2
}}
const obj1 = {c:123}
const arr = [1,2]
const arr1 = [1,2,3]
const data = Object.assign({},obj,obj1)
data.a = 'bbb'
console.log(obj,'obj')
console.log(Object.assign([],arr,arr1))
console.log(Object.assign([{a:1}],[{b:2}]))  //[{b:2}]
console.log(Object.assign({a:{b:1}},{c:{d:1}}))  //{a:{b:1},c:{d:1}}
console.log(Object.assign({a:{b:1}},{a:{d:1}})) //{a:{d:1}}
